﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using CANO.Data.DAOs;

namespace CANO.WebSite.admin.UserControls
{
	public partial class ucTipoTelefono : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void Cell_Click(object sender, DirectEventArgs e)
		{
			RowSelectionModel sm = this.gpTipoTelefono.SelectionModel.Primary as RowSelectionModel;
            var editId = sm.SelectedRows[0].RecordID;

            Session.Add("EditId", editId);

            Response.Redirect("/admin/ContactosAdmin.aspx?Edit=TipoTelefono");
		}
	}
}